<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('dbvip/payment/flexigrid') ?>',
                    colModel: [
						{display: '<?= translate('DBVIP_ROLEID') ?>', name: 'playerid', width: '100', process: formatSearch},
						{display: '<?= translate('DBVIP_ACCOUNTID') ?>', name: '_id', width: '100', process: formatSearch},
                        {display: '<?= translate('DBVIP_PRODUCT_ID') ?>', name: 'productid', width: '50',hide: true, iskey: true},
                        {display: '<?= translate('DBVIP_STATUS') ?>', name: 'status', width: '100'},
                        {display: '<?= translate('DBVIP_TYPE') ?>', name: 'type', width: '100'},
                        {display: '<?= translate('DBVIP_MONEYTYPE') ?>', name: 'moneytype', width: '100'},
                        {display: '<?= translate('DBVIP_PAYNUM') ?>', name: 'paynum', width: '100'},
                        {display: '<?= translate('DBVIP_CREATE_TIME') ?>', name: 'createtime', width: '100'},
                        {display: '<?= translate('DBVIP_DIAMOND') ?>', name: 'diamond', width: '100'},
                        {display: '<?= translate('DBVIP_EXTRAAWARD') ?>', name: 'extraaward', width: '100'},
                        {display: '<?= translate('DBVIP_FIRSTAWARDID') ?>', name: 'firstawardid', width: '100'},
                        {display: '<?= translate('DBVIP_DAYNUM') ?>', name: 'daynum', width: '100'},
                        {display: '<?= translate('DBVIP_TIME') ?>', name: 'time', width: '100'},
                        {display: '<?= translate('DBVIP_REMARK') ?>', name: 'remark', width: '100'},


//                        {display: '<?//= translate('MANAGE') ?>//', name: 'id', width: '150', sortable: false, process: formatOp, hide: true},
                    ],
                    buttons: [
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
//                        {name: 'name', displayname: "<?= translate('MESSAGE_ROLE_NAME') ?> <input type='text' style='padding:1px;' value='yy' size='12' placeholder='<?= translate('PLASE_WRITE') ?>' name='name' op='='/>", bclass: 'add'},
                    ],
                    //searchitems: true,
                }));

                SG.admin = $.extend(SG.admin, {                    
		    		edit_url: '<?= site_url("dbvip/payment/edit/") ?>',                      
                });
                    

            });
        </script>
    </body>
</html>